package com.rocket.customer;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @author guoQ.z
 * @date 2021/2/5
 */
@Slf4j
@Component
@RocketMQMessageListener(
        topic = "practice",
        consumerGroup = "practice-group_two"
)
public class TwoListener implements RocketMQListener<String> {
    @Override
    public void onMessage(String message) {
        log.info("two listener :{}", message);
    }
}
